/*
 * @Author: your name
 * @Date: 2021-05-20 09:47:57
 * @LastEditTime: 2021-06-08 20:05:43
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \wallet\src\main.js
 */
/* jshint esversion: 6 */
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import './registerServiceWorker';
import VueResource from 'vue-resource';
// import axios from 'axios';


Vue.use(VueResource);
Vue.config.productionTip = false;
// Vue.prototype.$axios = axios; //将axios绑定到vue的原型上
/* 路由发生变化修改页面title */
router.beforeEach((to, from, next) => {
  if (to.meta.title) {
    document.title = to.meta.title;
  }
  next();
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
